package org.cll.lagou.study.springbootdemo.pojo;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * 描述信息:
 *
 * @author CLL
 * @version 1.0
 * @date 2020/6/26 23:54
 */
@ToString
@Component
public class Student {

    // @value注解适合简单数据类型导入，不需要set方法
    @Value("${student.name}")
    private String name;

    @Value("${student.id}")
    private Integer id;
}
